<?php

namespace app\model\tree;

use app\BaseModel;
use think\model\relation\BelongsTo;

/**
 * 心灵智慧树-收取记录
 */
class TreeCollectModel extends BaseModel
{
    protected $name = 'tree_collect';

    /**
     * 果实
     * @return BelongsTo
     */
    public function fruit(): BelongsTo
    {
        return $this->belongsTo(TreeFruitModel::class,'fruit_id');
    }
}